#pragma once

#include "RBTree.h"

namespace WX
{
	template<class K>
	class set
	{
		struct MapKeyOfT
		{
			const K& operator()(const K& date)const
			{
				return date;
			}
		};

	public:
		typedef typename RBTree<K, MapKeyOfT>::iterator iterator;
		typedef typename RBTree<K, MapKeyOfT>::const_iterator const_iteraotr;

		pair<iterator,bool> insert(const K& k)
		{
			return _t.Insert(k);
		}

		iterator begin()
		{
			return _t.begin();
		}
		iterator end()
		{
			return _t.end();
		}

		const_iteraotr begin()const
		{
			return _t.begin();
		}
		const_iteraotr end()const
		{
			return _t.end();
		}
	private:
		RBTree<K, MapKeyOfT> _t;
	};
}